<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.leanModal.min.js"></script>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<script type="text/javascript" language="javascript">

	</script>
</head>
<body>
<div style="font-family:Arial, Helvetica, sans-serif;" >
<h1>Web FeedBack Tracking</h1>

<form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
<?php if(empty($this->id)){?>
Input your password:<input type = "password" name = "password" ></input>&nbsp;<input type = "submit" name = "submit" value = "submit"></input>
<?php }?>
<?php if($this->pendCase){
		$i = 1;?>
<table width="700" border="1" cellspacing="0" cellpadding="10">
	<tr>
		<td>No.</td>
		<td>Link</td>
		<td>Description</td>
		<td>FeedBack</td>
	</tr>
	
	<?php foreach ($this->pendCase as $k => $v){?>
	<tr>
		<td><?php echo $i?></td>
		<td><a href = "<?php echo $v['link']?>" target="_blank"><?php echo $v['link']?></a></td>
		<td><?php echo $v['detail']?></td>
		<td><select name = "feedback[<?php echo $v['id_log']?>]" >
				<option value = "happy">Happy</option>
				<option value = "no">Not Happy</option>
		</select></td>
	</tr>
	<?php $i++;}?>
</table>
<br/>
	<input type = "submit" name = "confirm" value = "Confirm Feedback"></input>
<?php }?>
<br />
</form>
</div>

</body>
</html>
